<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/jsp/common/common.jsp"%>
<html class="h100b">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<script type="text/javascript" src="${path}/ajax.do?managerName=qiangsDDManager"></script>
<script type="text/javascript">
    $(document).ready(function() {
    	$("#persion").click(function (){
			var values = $("#hiden").val();
			var txt = $("#persion").val();
	    	$.selectPeople({
		        type : 'selectPeople',
		        panels : 'Outworker',
		        selectType : 'Member',
				maxSize:20,
		        isCanSelectGroupAccount:false,
	            hiddenOtherMemberOfTeam:true,
		        onlyLoginAccount : true,
		        unallowedSelectEmptyGroup:true,
		        isNeedCheckLevelScope: false,
		        hiddenPostOfDepartment:true,
			    params : {
			    	text : txt,
			        value : values
			    },
			    callback : function(ret) {
					$("#persion").val(ret.text);
					$("#hiden").val(ret.value);
			    }
			});
    	});
		
		$("#btn_ok").click(function(){
			if ($("#hiden").val() != '') {
				var ddManager = new qiangsDDManager();
				ddManager.resendMail($("#hiden").val(), {
						success : function(result) {
							if(null == result){
								$.alert("推送邮件失败!");
							} else {
								$.alert(result);
							}
							$("#persion").val("");
							$("#hiden").val("");
						}
					});	
			}
		});
    });
</script>
</head>
<body>
	<table class="margin_t_5 margin_l_5 font_size12" align="center" width="100%" height="100%" style="table-layout: fixed;">
		<tr height="40%">
			<td width="40%">&nbsp;</td>
			<td width="20%">&nbsp;</td>
			<td width="40%">&nbsp;</td>
		</tr>
		<tr height="20%">
			<td width="40%">&nbsp;</td>
			<td valign="top" width="20%">
				<input type="hidden" id="hiden" name="hiden"/>
				<p align="center" class="margin_b_5">请选择需要重发邮件的人员:</p> 
				<input type="text" id="persion" name="persion" style="padding:0;height:30px;line-height:30px;font-size:15px;text-align:center;" />
			</td>
			<td align="left" width="40%">
				<p align="center" class="margin_b_5">&nbsp;</p> 
				<a id="btn_ok" class="common_button common_button_emphasize common_button_big" style="font-size:15px;" href="javascript:void(0)">重发</a>
			</td>
		</tr>
		<tr height="40%">
			<td width="40%">&nbsp;</td>
			<td width="20%">&nbsp;</td>
			<td width="40%">&nbsp;</td>
		</tr>
	</table>
</body>
</html>